<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


<!-- 会员的详情，供其他页面调用使用，建议使用：600*600 打开 -->
<div class="pageContent">
		<div class="pageFormContent" layoutH="56">
	 		<p>
				<label>用户登陆名</label>
				<input  type="text" size="30" value="${member.loginname }" readonly="readonly"/>
			</p>

			<p>
				<label>会员名称或昵称：</label>
				<input  type="text" size="30" value="${member.name }" readonly="readonly"/>
			</p>
			<p>
				<label>真实姓名：</label>
				<input  type="text" size="30" value="${member.truename }" readonly="readonly"/>
			</p>
			<p>
				<label>性别：</label>
				<c:if test="${member.sex == 1}">
				<input  type="text" size="30" value="男" readonly="readonly"/>
				</c:if>
						<c:if test="${member.sex == 2}">
							<input  type="text" size="30" value="女" readonly="readonly"/>
						</c:if>
								<c:if test="${empty member.sex}">
							<input  type="text" size="30" value="未知" readonly="readonly"/>
								</c:if>
			</p>
			<p>
				<label>出生日期：</label>
				<input  type="text" size="30" value="${member.birthday }" readonly="readonly"/>
			</p>
			<p>
				<label>电子邮箱：</label>
				<input  type="text" size="30" value="${member.email }" readonly="readonly"/>
			</p>
			<form onsubmit="return validateCallback(this, editDialogAjaxDone);" action="${rootUrl}/member/member!changeMobile" method="get">
			
			<input type="hidden" name="id" value="${member.id }">
			<p>
				<label>手机号：</label>
				<input  type="text" size="30" value="${member.mobile }" readonly="readonly"/>
			</p>
			</form>
			<p>
				<label>qq：</label>
				<input  type="text" size="30" value="${member.qq }" readonly="readonly"/>
			</p>
			<p>
				<label>微信：</label>
				<input  type="text" size="30" value="${member.weixin }" readonly="readonly"/>
			</p>
			<p>
					<label>用户状态：</label>
				<c:if test="${member.state == 1}">
					<input  type="text" size="30" value="已激活" readonly="readonly"/>
				</c:if>
						<c:if test="${member.state == 0}">
							<input  type="text" size="30" value="未激活" readonly="readonly"/>
						</c:if>
								<c:if test="${empty member.state}">
							<input  type="text" size="30" value="xxxxx" readonly="readonly"/>
								</c:if>
						
			</p>
					
			<p>
				<label>注册时间：</label>
				<input  type="text" size="30" value="<fmt:formatDate value="${member.time }" pattern="yyyy-MM-dd HH:mm:ss" />" readonly="readonly"/>
			</p>
			
			<p>
				<label>钱包余额(元):</label>
				<input  type="text" size="30" value="<fmt:formatNumber value="${member.account.purse/100}" pattern="0.00"/>" readonly="readonly"/>
			</p>
			
			<p>
				<label>用户积分:</label>
				<input  type="text" size="30" value="${member.account.points}" readonly="readonly"/>
			</p>
			<p></p>
			<label> 用户头像:</label>
			<div class="imgContainer">
				<a><img id="qqq" src="${member.avatar }" /></a>
			</div>
	</div>
	<c:if test="${empty member.dealer}"><a class="buttonActive" href="#"><span>分销商详情</span></a></c:if>
	<c:if test="${not empty member.dealer}"><a class="buttonActive" href="${rootUrl }/member/dealer!detail?id=${member.dealer.id}" rel="dealer_detail" title="分销商详情" target="dialog" width="800" height="600"><span>分销商详情</span></a></c:if>
	
	<a class="buttonActive" href="${rootUrl}/member/bankcard?memberId=${member.id}" rel="member_bankcard"  title="银行卡号" target="dialog" width="1000" height="600"><span>银行卡号</span></a>
	<a class="buttonActive" href="${rootUrl}/member/fund-flow/${member.id}" rel="member_fundFlow_dialog" width="1000" height="600" target="dialog"><span>资金流</span></a>
	<a class="buttonActive" href="${rootUrl}/order/comments/0/search?memberId=${member.id}" rel="member_comments" width="1000" height="600" target="dialog"><span>评论表</span></a>
	<a class="buttonActive" href="${rootUrl}/order/orders/0/search?memberId=${member.id}" rel="member_orders" width="1600" height="600" target="dialog"><span>订单表</span></a>
	<a class="buttonActive" href="${rootUrl}/member/commission/${member.id}" rel="member_commission_dialog" width="1000" height="600" target="dialog"><span>分佣表</span></a>
	<a class="buttonActive" href="${rootUrl}/member/withdrawals/${member.id}" rel="member_withdrawals_dialog" width="1000" height="600" target="dialog"><span>提现表</span></a>
	<a class="buttonActive" href="${rootUrl }/member/member-address?memberId=${member.id}" rel="member_address"  title="收货地址" target="dialog" width="1000" height="600"><span>收货地址</span></a>
</div>